Severity: Warning
Message: A non-numeric value encountered
Filename: core/MY_Model.php
Line Number: 16
Backtrace:
File: /home/wwwchhat/public_html/application/core/MY_Model.php
Line: 16
Function: _error_handler
File: /home/wwwchhat/public_html/application/modules/home/models/Home_model.php
Line: 177
Function: get_pagination_required
File: /home/wwwchhat/public_html/application/modules/home/controllers/Home.php
Line: 48
Function: post
File: /home/wwwchhat/public_html/index.php
Line: 315
Function: require_once
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /home/wwwchhat/public_html/system/core/Exceptions.php:271)
Filename: core/Common.php
Line Number: 570
Backtrace:
File: /home/wwwchhat/public_html/application/modules/home/models/Home_model.php
Line: 180
Function: get
File: /home/wwwchhat/public_html/application/modules/home/controllers/Home.php
Line: 48
Function: post
File: /home/wwwchhat/public_html/index.php
Line: 315
Function: require_once
Error Number: 1064
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-10, 10' at line 6
SELECT `t1`.*, `t2`.`name` as `category`, `t3`.`name` as `user` FROM `tbl_post` as `t1` LEFT JOIN `tbl_post_category` as `t2` ON `t1`.`category_id`=`t2`.`category_id` LEFT JOIN `tbl_user` as `t3` ON `t1`.`user_id`=`t3`.`user_id` ORDER BY `t1`.`date` DESC LIMIT -10, 10
Filename: modules/home/models/Home_model.php
Line Number: 180